const fs = require("fs");
const path = require("path");

let filePath = path.join(__dirname,"1.txt");
let fileObj = fs.statSync(filePath);
console.log(fileObj);

//let cTime = new.Data(fileObj.ctimeMs);

let year = cTime.getFullYear();
let mouth = cTime.getMonth();
let day = cTime.getDay();
let hour = cTime.getHour();
let minute = cTime.getMinute();
let second = cTime.getSecond();


console.log(year + "-" + month + "-" + day + " " + hour +
     ":" +minute + ":" + second
    );

/**
 * 判断当前路径获取到的是文件夹还是文件
 */

fileObj.isFile()
